import request from '@/utils/request'

export function register (mobile: string, account: string, userPwd: string) {
  return request({
    url: '/register',
    method: 'post',
    data: {
      mobile,
      account,
      userPwd
    }
  })
}

export function checkMobile (mobile: string) {
  return request({
    url: '/checkMobileRepeats',
    method: 'post',
    params: {
      mobile
    }
  })
}

export function checkAccount (account: string) {
  return request({
    url: '/checkAccountRepeats',
    method: 'post',
    params: {
      account
    }
  })
}
